package com.ruihu.admin.module.business.task.constant;

import com.ruihu.admin.common.domain.BaseEnum;

/**
 * 任务状态枚举
 */
public enum TaskStatusEnum implements BaseEnum {

    DISCARD("-1", "废除"),
    CREATED("0", "未开始"),
    RUNNING("1", "运行中"),
    PAUSE("2", "暂停"),
    COMPLETE("3", "完成"),
    HANGING("4", "挂起"),
    ARCHIVE("5", "归档");


    private String val;

    private String desc;

    TaskStatusEnum(String val, String desc) {
        this.val = val;
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return this.val;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }
}
